package com.bootdo.coach.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.coach.dao.TabSellTypeMapper;
import com.bootdo.coach.dao.ext.ExtTabSellTypeMapper;
import com.bootdo.coach.domain.TabSellType;
import com.bootdo.coach.service.TabSellTypeService;


@Service
public class TabSellTypeServiceImpl implements TabSellTypeService {
    @Autowired
    private TabSellTypeMapper mapper;
    @Autowired
    private ExtTabSellTypeMapper extMapper;

	@Override
	public int deleteByPrimaryKey(Integer sellTypeId) {
		return mapper.deleteByPrimaryKey(sellTypeId);
	}

	@Override
	public int insert(TabSellType record) {
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(TabSellType record) {
		return mapper.insertSelective(record);
	}

	@Override
	public TabSellType selectByPrimaryKey(Integer sellTypeId) {
		return mapper.selectByPrimaryKey(sellTypeId);
	}

	@Override
	public int updateByPrimaryKeySelective(TabSellType record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TabSellType record) {
		return mapper.updateByPrimaryKey(record);
	}

    @Override
    public List<TabSellType> findSellTypeList() {
    	return extMapper.findSellTypeList();
    }
}
